<?php
// +----------------------------------------------------------------------
// | 有理想的地方，地狱都是天堂。
// +----------------------------------------------------------------------
// | Copyright @ df81.com 版权所有
// +----------------------------------------------------------------------
// | 作者: 南国老符 邮箱：1062129401@qq.com
// +----------------------------------------------------------------------

namespace app\api\controller\v1;
use think\facade\Db;
use think\facade\View;
use app\api\model\PinyinStr as pinYinModel;

class Common extends Base {
    // 汉字转拼音
    public function pinyin(){
        $urlroute = pinYinModel::view(input('title'));
        
        return $urlroute;
    }
    
    //查看图片
    public function view(){
        $thumb = input('thumb'); $tips = input('tips');

        if(empty($tips)) $tips = lang('v_do_tips');

        View::assign('tips',$tips);
        View::assign('thumb',$thumb);
        
        return view();
    }
}